<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="cutProcessList.title"/></title>
    <meta name="heading" content="<fmt:message key='formPantDetail.heading'/>"/>
    <meta name="menu" content="RoleAdminCut"/>

</head>
<div id="help">
    <h2>
        <a href="<c:url value='helpFormPantDetail.html?decorate=false'/>"
           title="Help material purchase"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
               <fmt:message key="help"/>
        </a>
    </h2>
</div>
<fieldset>
            <legend><fmt:message key="currentCut.currentCut"/></legend>
            <table class="tableGrey" id="currentCut" >
            <thead>
                <tr>
                    <th class="hidden"/>
                    <th><fmt:message key="storageCut.stock"/></th>
                    <th><fmt:message key="storageCut.pantDesign.model.datas"/></th>
                    <th><fmt:message key="storageCut.pantDesign.modelSize.valueSize"/></th>
                    <th><fmt:message key="storageCut.pantDesign.material.name"/></th>
                    <th class="hidden"/>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td><s:property id="storageCut.stock" value="storageCut.stock"/></td>
                    <td><s:property id="storageCut.pantDesign.model.datas" value="storageCut.pantDesign.model.datas"/></td>
                    <td><s:property id="storageCut.pantDesign.modelSize.valueSize" value="storageCut.pantDesign.modelSize.valueSize"/></td>
                    <td><s:property id="storageCut.pantDesign.material.name" value="storageCut.pantDesign.material.name"/></td>
                </tr>
            </tbody>
            </table>
    </fieldset>

<s:form id=" pantDetailForm" action="savePantDetail" method="post" validate="true">

    <fieldset>
     <legend><fmt:message key="cutProcessForm.selectDatas"/></legend>

        <s:hidden name="storageCut.id" value="%{storageCut.id}"/>
        <s:hidden name="pantDetail.id" value="%{pantDetail.id}"/>

        <table>
            <tr>
                <td>
                <%--s:textfield id="optTradeMark" key="optTradeMark" size="9"/--%>
                <s:select label="%{getText('asignTrademarkToDressmarker.selectTrademark')}" name="optTradeMark"
                          list="tradeMarkList" listKey="id" listValue="name" required="true"
                          headerKey="-1" headerValue="--- Please Select ---" />
                </td>
                <td>
                    <s:textfield id="pantDetail.quantity" required="true" key="pantDetail.quantity" size="9"/>
                </td>

            </tr><tr>
                <td>
                    <li class="buttonBar bottom">
                        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
                        <c:if test="${not empty pantDetail.id}">
                            <s:submit cssClass="button" method="delete" key="button.delete" theme="simple"/>
                        </c:if>
                        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
                    </li>
                </td>
            </tr>
        </table>

    </fieldset>
</s:form>
